package com.simple.piger.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.simple.piger.entity.CmsSysPermission;
import com.simple.piger.entity.CmsSysRolePermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * CMS【系统模块】角色权限关联表 Mapper 接口
 * @Author  donghj
 * @Date    2017/11/20 19:37
 */
@Repository
public interface CmsSysRolePermissionMapper extends BaseMapper<CmsSysRolePermission> {

    /**
     * 获取用户关联角色所拥有的模块、菜单和按钮权限
     * @Author  donghj
     * @Date    2017/12/14 17:42
     */
    List<CmsSysPermission> selSysUserPermissionList(@Param("map") HashMap hashMap);

    /**
     * 获取角色所拥有的模块、菜单和按钮权限
     * @Author  donghj
     * @Date    2017/11/20 19:59
     */
    List<CmsSysRolePermission> selSysRolePermissionList(@Param("map") HashMap hashMap);
}